<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>聊天界面</title>
  <script src="../../vue.js"></script>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    .box {
      border: 1px solid;
      width: 400px;
      height: 700px;
      margin: 50px auto;
      padding: 14px;
      background-color: #666;
    }

    .chat_head {
      height: 30px;
      line-height: 30px;
      text-align: center;
      padding: 10px 6px;
      font-size: 18px;
    }


    .chat_list {
      background: #ccc;
    }
    
    .chat_list_item {
      padding: 6px;
      padding-left: 8px;
      cursor: pointer;
    }

    .chat_list_item+.chat_list_item {
      border-top: 1px solid #f0f;
    }

    .chat_obj {

    }
    .chat_cont {
      font-size: 14px;
      color: #999;
    }
  </style>
</head>

<body>
  <div id="app">
    <div class="box">
      <!-- 1.展示聊天队列 -->
      <!-- 2.随机点击一个聊天项，进入对应聊天详情 -->
      <!-- 3.聊天详情展示已存在的聊天内容。
        并且可以输入新的聊天内容
        也可以删除
        还可以通过取消返回聊天队列 -->
      <div class="chat_head">
        <div>微微信</div>
      </div>
      <div class="chat_list">
        <div class="chat_list_item">
          <div class="chat_obj">小A</div>
          <div class="chat_cont">最近好久没有一起玩了</div>
        </div>
        <div class="chat_list_item">
          <div class="chat_obj">小B</div>
          <div class="chat_cont">晚上吃什么</div>
        </div>
        <div class="chat_list_item">
          <div class="chat_obj">小C</div>
          <div class="chat_cont">你作业写完没？</div>
        </div>
      </div>
    </div>
  </div>

  <script>
    new Vue({
      el: '#app',
      data: {
        str: 'hello'
      }
    })
  </script>
</body>

</html>